/*
 * @Author: aggfb 714740235@qq.com
 * @Date: 2024-04-23 22:48:23
 * @LastEditors: aggfb 714740235@qq.com
 * @LastEditTime: 2024-05-22 22:10:03
 * @FilePath: \label_rack_control\firmware\app\app.h
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#ifndef __APP_H
#define __APP_H

#include "stdio.h"	
#include "bsp_sys.h" 
#include "bsp_usart.h"	  
#include "fiber_optic.h"
#include "motor_ctrl.h"
#include "ui_screen.h"

enum app_system_status_e
{
    APP_SYSTEM_DEF = 0,
    APP_SYSTEM_CONFIG,          /* 设置参数 */
    APP_SYSTEM_RUNNING,         /* 运行状态 */
    APP_SYSTEM_NORMAL_PAUSE,    /* 正常暂停 */
    APP_SYSTEM_RUNNING_OFFSET,  /* 偏移量补偿 */
    APP_SYSTEM_OVER_TIME_STOP,  /* 超时停止 */
    APP_SYSTEM_MANUAL,          /* 手动 */
    APP_SYSTEM_AUTOMATIC,       /* 自动 */
};    

#define BUTTON_TIMEOUT 600000 //(10*60*1000)

extern uint8_t app_get_system_status(void);
extern void app_set_system_status(uint8_t val);

extern void app_main(void);

#endif


